package cn.bocai.pc.dao.imp;

import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import cn.bocai.pc.dao.BcAdminMapper;
import cn.bocai.pc.model.BcAdmin;

public class BcAdminMapperImpl extends SqlSessionDaoSupport implements BcAdminMapper {
	String ns="cn.bocai.pc.dao.BcAdminMapper.";
	
	//用户登入的时候查询用户名和密码是否匹配
	public BcAdmin selectLogin(BcAdmin record) {
		BcAdmin ba_login =(BcAdmin)this.getSqlSession().selectOne(ns+"selectLogin",record);
		return ba_login;
	}
	 //登入以后修改用户密码
	public int updateUserPaw(Map<String, Object> par) {
			int updDate = this.getSqlSession().update(ns+"updateUserPaw",par);
			return updDate;
	}
	public int deleteByPrimaryKey(String userId) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insert(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insertSelective(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public BcAdmin selectByPrimaryKey(String userId) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateByPrimaryKeySelective(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(BcAdmin record) {
		// TODO Auto-generated method stub
		return 0;
	}
	
}